<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/extremecomponents.tld" prefix="ec"%>
<%--<link rel="stylesheet" type="text/css"
	href="images/eXtremeComponents/extremecomponents.css" />
--%>
<%@include file="../header.jsp"%>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript">
	window.onload = function() {
		CKEDITOR.replace('reply.reply_content');
	};
</script>

</head>
<%@include file="../menu.jsp"%>
<div id="content">

	<!-- Normal content: Stuff that's not going to be put in the left or right column. -->

	<div class="post">
		<h3>
			<strong><s:property value='topic.title' /> </strong>
		</h3>
		<div class="contentarea">
			<div class="details">
				Posted by <a href="http://www.865171.cn">Jane Doe</a>
				<s:property value="topic.posttime" />
			</div>
			<img src="images/index/pic3.jpg" class="left" alt="A chinese dragon" />
			<p>
				<s:property value='topic.content' />
			</p>
			<ul class="controls">
				<li><a href="http://www.865171.cn" class="printerfriendly">Printer
						Friendly</a>
				</li>
				<li><a href="http://www.865171.cn" class="comments">Comments
						(18)</a>
				</li>
				<li><a href="javascript:void(0)"
					onclick="$('#<s:property value="topic.id" />').toggle('fast')"
					class="more">回复</a>
			</ul>
		</div>
	</div>
	<div id=<s:property value="topic.id" /> style="display: none"
					class="post">
					<h4>对楼主的回复</h4>
					<div class="contentarea">
						<form method="post" action="replyAction!addReply.action">
							<table>
								<tr>

									<td><input type="hidden" name="reply.reply_topic_id"
										value="<s:property value='topic.id' />"> <input
										type="hidden" name="reply.reply_parent_id" value="0" />"></td>
								</tr>
								<tr>

									<td><textarea name="reply.reply_content"
											class="jquery_ckeditor">
							
						</textarea>
									</td>
								</tr>
								<tr>
									<td><input type="submit" value="提交"></td>
							</table>
						</form>
					</div>

				</div>
	


	<div class="divider1"></div>

		<div id="primarycontent">
			<!-- Primary content area start##################################################### -->

	<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
	<s:iterator value="topicpmap.keySet()" id="key">
		<div class="post">
					<h4>Lorem Ipsum Veroeros</h4>
					<div class="contentarea">
						<div class="details">
							Posted by <a href="http://www.865171.cn">Jane Doe</a>
							<s:property value="#key.reply_time" />
						</div>
						<img src="images/index/pic3.jpg" class="left"
							alt="A chinese dragon" />
						<p>
							<s:property value="#key.reply_content" />
						</p>
						<ul class="controls">
							<li><a href="http://www.865171.cn" class="printerfriendly">Printer
									Friendly</a>
							</li>
							<li><a href="http://www.865171.cn" class="comments">Comments
									(18)</a>
							</li>
							<li><a href="javascript:void(0)"
								onclick="$('#<s:property value="#reply.reply_id" />').toggle('fast')"
								class="more">回复</a>
						</ul>
					</div>
				</div>
				<s:if test="topicpmap.get(#key).size>0">
   					<s:iterator value="topicpmap.get(#key)" var="reply" >
  						<div class="post" style="margin-left:100px;">
					<h4>Lorem Ipsum Veroeros</h4>
					<div class="contentarea">
						<div class="details">
							Posted by <a href="http://www.865171.cn">Jane Doe</a>
							<s:property value="#key.reply_time" />
						</div>
						<img src="images/index/pic3.jpg" class="left" height="20" width="20"
							alt="A chinese dragon" />
						<p>
							<s:property value="#key.reply_content" />
						</p>
						<ul class="controls">
							<li><a href="http://www.865171.cn" class="printerfriendly">Printer
									Friendly</a>
							</li>
							<li><a class="comments">Comments
									(18)</a>
							</li>
							<li><a href="javascript:void(0)"
								onclick="$('#<s:property value="#reply.reply_id" />').toggle('fast')"
								class="more">回复</a>
						</ul>
					</div>
				</div>
				<div class="divider2"></div>

				<div id=<s:property value="#reply.reply_id" /> style="display: none"
					class="post">
					<h4>对楼上的回复</h4>
					<div class="contentarea">
						<form method="post" action="replyAction!addReply.action">
							<table>
								<tr>

									<td><input type="hidden" name="reply.reply_topic_id"
										value="<s:property value='topic.id' />"> <input
										type="hidden" name="reply.reply_parent_id" value="0" />"></td>
								</tr>
								<tr>

									<td><textarea name="reply.reply_content"
											class="jquery_ckeditor">
							
						</textarea></td>
								</tr>
								<tr>
									<td><input type="submit" value="提交">
									</td>
							</table>
						</form>
					</div>

				</div>
  					</s:iterator>
				</s:if>
  		
	</s:iterator>
	
	</div>












	<!-- Secondary content: Stuff that goes in the secondary content column (by default, the narrower right column) -->
	<div id="secondarycontent">
		<!-- Secondary content area start -->

		<!-- HINT: Set any div's class to "box" to encapsulate it in (you guessed it) a box -->
		<div class="box">
			<h4>Blandit Veroeros</h4>
			<div class="contentarea">
				<img src="images/index/pic2.jpg" class="left" alt="Random foliage" />
				<p>
					Sed etiam et lorem ipsum nulla vero et lobortis felis sed etiam.
					Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean
					felis. Quisque eros etiam <a href="http://www.865171.cn">sed
						commodo</a>.
				</p>
			</div>
		</div>

		<div>
			<h4>Nullam Dolore</h4>
			<div class="contentarea">
				<ul class="linklist">
					<li><a href="http://www.865171.cn">Volutpat at varius sed</a>
					</li>
					<li><a href="http://www.865171.cn">Sollicitudin et arcu</a>
					</li>
					<li><a href="http://www.865171.cn">Vivamus viverra nullam</a>
					</li>
					<li><a href="http://www.865171.cn">Turpis vestibulum</a>
					</li>
					<li><a href="http://www.865171.cn">Sed etiam lorem ipsum</a>
					</li>
					<li><a href="http://www.865171.cn">Sit amet dolore nulla</a>
					</li>
					<li><a href="http://www.865171.cn">Facilisi sed tortor</a>
					</li>
					<li><a href="http://www.865171.cn">Aenean felis quisque</a>
					</li>
					<li><a href="http://www.865171.cn">Eros cras lobortis vel</a>
					</li>
					<li><a href="http://www.865171.cn">Purus in eget odio
							sapien</a>
					</li>
					<li><a href="http://www.865171.cn">Adipiscing blandit</a>
					</li>
				</ul>
			</div>
		</div>

		<!-- Secondary content area end -->
	</div>



</div>


<%@include file="../footer.jsp"%>